import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/YBBaseRouter/YBNavigator.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/yb_jujidi_main/yb_jujidi_main_oneimagecell.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/yb_jujidi_main/yb_jujidi_main_threeimagecell.dart';

class YBJuJiDiMain extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: DefaultTabController(
        length: 4,
        child: Scaffold(
          appBar: AppBar(
            bottom: TabBar(
             tabs:[
               Text("女装"),
               Text("女装"),
               Text("女装"),
               Text("女装"),
             ]),
          ),
          body:TabBarView(
            children:[
              Container(
                child: ListView.builder(
                    itemBuilder:(BuildContext context,int index){
                      return Container(
                        child: InkWell(
                          child: YBJuJiDiOneImageCell(),
                          onTap: () async {
                             YBNavigatorUtil.jump(context, '/workTaiPage/workTaiMyInfoDetailPage?id=${"reMenModel.id"}&&title=${Uri.encodeComponent("reMenModel.title")}&&descirtion=${Uri.encodeComponent("reMenModel.subTitle")}');
                          },
                        ),
                      );
                    }
                ),
              ),
              Container(
                child: ListView.builder(
                    itemBuilder:(BuildContext context,int index){
                      return Container(
                        child: InkWell(
                          child: YBJuJiDiOneImageCell(),
                          onTap: () async {
                            YBNavigatorUtil.jump(context, '/workTaiPage/workTaiMyInfoDetailPage?id=${"reMenModel.id"}&&title=${Uri.encodeComponent("reMenModel.title")}&&descirtion=${Uri.encodeComponent("reMenModel.subTitle")}');
                          },
                        ),
                      );
                    }
                ),
              ),
              Container(
                child: ListView.builder(
                    itemBuilder:(BuildContext context,int index){
                      return Container(
                        child: InkWell(
                          child: YBJuJiDiOneImageCell(),
                          onTap: () async {
                            YBNavigatorUtil.jump(context, '/workTaiPage/workTaiMyInfoDetailPage?id=${"reMenModel.id"}&&title=${Uri.encodeComponent("reMenModel.title")}&&descirtion=${Uri.encodeComponent("reMenModel.subTitle")}');
                          },
                        ),
                      );
                    }
                ),
              ),
              Container(
                child: ListView.builder(
                    itemBuilder:(BuildContext context,int index){
                      return Container(
                        child: InkWell(
                          child: YBJuJiDiThreeImageCell(),
                          onTap: () async {
                            YBNavigatorUtil.jump(context, '/workTaiPage/workTaiMyInfoDetailPage?id=${"reMenModel.id"}&&title=${Uri.encodeComponent("reMenModel.title")}&&descirtion=${Uri.encodeComponent("reMenModel.subTitle")}');
                          },
                        ),
                      );
                    }
                ),
              ),
            ]
          ),
        ),
      ),
    );
  }
}
